const Koa= require("koa");
const bodyParser = require("koa-bodyparser");
const port = 3000;

const app = new Koa();
//中间件
app.use(bodyParser());

const router =  require("./app/router");
app.use(router.routes());

//监听
app.listen(port,()=>{
    console.log(`服务器已启动：http://localhost:${port}`);
})

